package com.tzx.fluttermixedapplication.test

import kotlinx.coroutines.MainScope
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch

suspend fun testScope() = coroutineScope {
    println("${Thread.currentThread().name}  11111111111111")
    val scope = MainScope()
    scope.launch {
        println("${Thread.currentThread().name}  Kotlin Coroutines word~!")
    }
    println("${Thread.currentThread().name}  Hello")
    scope.launch {
        println("${Thread.currentThread().name}  22222222222222")
    }
}